<#--
	Description:恩付订单结果查询
	Author：Wangxuegang
	Date：2013-05-06
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	    <title>恩付订单查询</title>
	    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
		<#include "../template/template_editPage.ftl">
		<#include "../template/include/assign.ftl">
		<#include "../template/include/source.ftl">
		<link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css"/>
	    <style type="text/css">
	        .page {
	            float: right;
	            padding-top: 15px;
	            margin-right: 15px;
	        }
	    </style>
</head>
<body class="list">
	<script type="text/javascript">
		$().ready(function () {
        var $validateErrorContainer = $("#validateErrorContainer");
        var $validateErrorLabelContainer = $("#validateErrorContainer ul");
        var $validateForm = $("#inputForm");
        var $tab = $("#tab");
        // Tab效果
        $tab.tabs(".tabContent", {
            tabs:"input"
        });
		
		// 表单验证
        $validateForm.validate({
            errorContainer:$validateErrorContainer,
            errorLabelContainer:$validateErrorLabelContainer,
            wrapper:"li",
            errorClass:"validateError",
            ignoreTitle:true,
            rules:{
                "enfuQuery.orderno":{
                    required:true
                }

            },
            messages:{
                "enfuQuery.orderno":{
                    required:"本地订单编号为必选项！"
                }

            },
            submitHandler:function (form) {
                    form.submit();
            }
        });
		 <#if actionErrors?? && (actionErrors?size > 0)>
	        $.messager.show("提示信息", "<#list errorMessages as list>${list}<br></#list>", 2000);
	        $("#span").html("<#list errorMessages as list>${list}<br></#list>");
	    </#if>
	    });
	
	</script>
	<div class="body">
		<div class="listBar">
        	<h1><span class="icon">&nbsp;</span>恩付订单查询&nbsp;</h1>
	    </div>
	    <div style="display: none;" id="validateErrorContainer" class="validateErrorContainer">
	        <div class="validateErrorTitle" id="validateErrorTitle">以下信息填写有误,请重新填写</div>
	        <ul></ul>
	    </div>
	    <form id="inputForm" class="validate" 
	          action="${web_base}/game/enfu!queryOrderStatusList.htm" query="enfuQuery" method="post">
   			<div class="operateBar">
			            <label>请输入:</label>
			            本地订单编号：<input type="text" id="orderId"  name="enfuQuery.orderno"
			                           value="<#if enfuQuery??>${(enfuQuery.orderno)!}</#if>" 
			                            onkeyup="this.value=this.value.replace(/\D/g,'')"
			                           onafterpaste="this.value=this.value.replace(/\D/g,'')"/>*
			            <span id="orderSpan" style="color: red;"></span>
			            <input type="submit" id="searchButton" class="addButton" value="查询"/>
            </div>
		</form>
		<table class="listTable">
			<tr>
				<th>
	                <span class="sort" name="orderno">本地订单编号</span>
	            </th>
	            <th>
	                <span class="sort" name="orderstatus">状态</span>
	            </th>
	            <th>
	                <span class="sort" name="rechargeresult">状态描述</span>
	            </th>
	            <th>
	                <span class="sort" name="rechargeresult">说明</span>
	            </th>
			</tr>
			
			<#if enfuInfo??>
				<tr>
		            <td>
		          	  	${(enfuInfo.orderno)!}
		            </td>
		            <td>
		            	${(enfuInfo.orderstatus)!}
		            </td>
		            <td>
		                <#if enfuInfo.orderstatus?? && enfuInfo.orderstatus == "order_success">
		                  	  订单充值成功
		                <#elseif  enfuInfo.orderstatus?? && enfuInfo.orderstatus == "order_failed">
		                  	  订单充值失败
		                <#elseif  enfuInfo.orderstatus?? && enfuInfo.orderstatus == "order_in">
		                 	   订单充值中
                		</#if>
				    </td>
				    <td>
				    	<#if enfuInfo.orderstatus??>
				    	${(enfuInfo.rechargeresult)!}
				    	<#else>
				    	${(enfuInfo.resultdescription)!}
				    	</#if>
		            	
		            </td>
		        </tr>
		    </#if>
		</table>
		<#if !enfuInfo??>
			<div class="noRecord">
				<span id="span"> 没有找到任何记录!</span>
			</div>
		</#if>
	  </div>
	</body>
</html>
